Update application.cpp