update how to use invoke command handler