updated UI to support document revision