fixed links and document loading