How to change the Action for a particular event