Fix searchbar events

Fixes #240