Add event listeners for nav-button and other divs for safario ios compatibility