Updated edit pin functionality.