added generate_blank and set_url for model