moved all dom and event stuff to control