change dir of document