Search box for taaable entities and some refactoring.