Added openSubNavBar method into MainPage class and auxiliary classes