use the on method for click