redirect after create class