Redirected the user to the edit page after editing by inserting a else loop into the controller page