Added new on method for automatically trigger registered methods