updating main class of the Application