add code for menu rendering