Collapse the navbar when loading dashboard based on hash