Parsing event and using callbaks