updated view and index pages