Added a directionview for painting