combine frontend and autocomplete