Major changed commited navigation bar added to JFrame instead of mainPanel and mainPanel became a container