added view code