update applicationui.cpp file