Making the navbar work for mobile