Rewrite ActionMode in profile preferences; fix close ActionMode on
autorotate