added view authentication