making cube DOM events work for me