added view and some api also