Added check to autocomplete only gets shown on frontpage