refactored application status controller.