Move code for a navigation using horizontal menu to separate file.