updating app context