Add OnClick method to clock plugin