add animation when setting pin