Added collapse functinality to the navbar