Addted view State class for state pattern for view/painting handling