changed repaint classes and removed viewframe