now setting the boardSnapshotView closeIcon click handler programmatically