added view object  to implement the view