This code contains example for main menu some buttons are working some are not.