Dynamic changes in Rap1 activity are required for cell retraction and spreading during mitosis