autopopulate ids on view pages/ doc updates