added calling of render event (forgot to add last commit)