Refactoring view of create pin