action hooks working