toggle between hamburger icon and close icon for mobile navigation bar