autocompletion and layout of result