doctor model and redirect