Sidebar automatically closes if pushState is used