added onCommand listener