fixed keyboard not showing on focus

code clean up, show a loading icon when autocomplete is working