Refactoring view when pin is created