adding button location reference when button is clicked