position autocomplete menu, implement selection functionality and show hide events