Update and delete pins fixed