updating main app file