Refactor application controller action
Refactor auth view