Event handlers to add words to completion dict, helpers