refactroing vews