Added clear pins functionality