fix admin constest and autocomplete code