Merging navbar and header functionality