Refactoring view of pin