Improve "find active search bar" procedure