Rewrite ActionMode in profile/event preferences; fix close ActionMode on
autorotate