added menu update script and refactor message_handlers