added view and subpage index