erase menu and corresponding class removed