Refactored controller. set 'form' to di before 'action' initialization.