Changed click event to a delegate event so field will work even if not present at page load