fix adding documents frame
threaded startup (just faster :))