updating model to make url not mandatory