update application context