Refacotirng views