add on_completion_display_matches_hook function