Change the logic of menu structure