added view functions layout