changed padding for code css and menu code(replaced switch with if)