fixed restart in advancedSearchPanel + flat document_type list
dealing with major values in checkboxes
refactored templates management