update main application