change nav bar, implementing toggle event