Overhauled flexible menus and added support for message tab menu