made domain object / eleminated some global vars / resize button