creation of new documents added. TODO: fix update, rework UI