added callback for when application is accepted.