Fixed the dashboard page so that the alerts messages and tabs are correctly hidden when no alerts or messages are present