fix the algorithm of showing animation control menus