Minor coding style updates.
Fix focusing of search field and search in page text fields

Both of these text fields are focused when the current index is correct
and overlay is at top.