what controls what enters and leaves the cell?