Refactoring view client controller