fixed remove pin functionality