Refactored Authorization view functionality into Authorization model