Remove menu.xml and fix the compilation error