Partially refactored application class
Refactored: Moved all code which works with tab widget to custom tab widget class