Made the navbar functional