client draw function - todo: still need to implement scrolling and handle resize event. get rid of scrollbars