Updated navbar dropdown menu to automatically close after clicking on a menu