update method saves changes and redirects to index