Made navbar menu open and close when in dropdown mode