Fixed pin editing and deleting