Refactor url controller and add scheme append to url model.