refactor some repaint stuff
mostly removed old repaints

funtionality moved into new div oriented repaints, old repaints call new
ones

some bug fixing