index file now calls the Application class