update with model relationships and update routes with namespace