moved move to extent function to the correct place in the drawing tool