updated action hooks