collapsed in navbar closes when page updates by listening to  event. Closes #13