move event handler inside scene