moving rearrange views function to augment