dynamic buttons and menu