add methods and specs for id and url in model