fixed up search so it closes with escape and searches next with enter or f3