updating action hook