create controller for leave_application