edit code generate and style of main menu in front-end and back-end