add redraw part. Only data communication part left