change application_controller put logic to use transaction
refactoring: Remove unnecessary processing