refactoring view + gestion layout