edited index and view