renaming state to stage, separate drag and resize stages