datepicker and tree views included for documents, infinite loop fixed