add event flow functionality