Add pin widget code