add the possibility to change data before action is called