Redirects to index after editing