Attempting to refer to 'this' pin and ib in click listener