model loader to set url as function instead of str

allows for collection urls with dynamic attributes