added record_url method