Add pin / unpin functions