updated get url
updated model to inherit from resourceModel