fixed empty box appearance
search API refactored