Ui: Open the upload modal if the upload tool is selected from the tool panel, fix code style for masthead and menu views