updated view and index