added methods to get controls from dw, improved the test program