applocation configure and code