Added event hook for re-rendering