Adjust search function specific event handlers to new coding style