Ionic - Navigation Controller and Nav heder


I need to have three types of navigation in my Ionic app. Is there anything that I can do to minimize my code? Main problem: All three navigation has the same side menu, but different header navigation. Picture under is my code of first navigation:

So Box1 on picture is the box that containts my Header navigation(navigation that needs to be diffrent on other two navigation) And Box2 on picture is box thats stays the same. Aslo here is picture how to looks in my app:

So depent on what page is the box1 need to be changed and box2 needs to stay the same.