bind on click when element is created