change route to set_type