implemented dynamic menu