add appcontext to manage application