search on enter

kinda ugly now,
but this will have to be refactored totally anyway