added feature to build url if one present on the model