update register view and url