triggering event on data input