Refactoring view e imageview