don't show history when there is no history
Fix #58, make in-page search async