Responsive navbar and better layout functions