make messages plugin work with custom navigation menu