added view and templates