added block support to action delegate