WL-3566 : move click attaching to on page load rather than every method call