Updated controller, redirect to list page after create or edit