Refactoring view handling code