updated the actionListeners