added view pages and modified controllers