working on rendering events