doc display works good+some fixes