made preview of editied docs and test of uploaded docs work.