improvement on addBulkAction function.

I had some trouble trying to rebase old commits into one as I'm not the owner of arillo account where I merged my forked version.

So I decided to make a new pull request with one commit from my forked version.

Hope it's ok, regards,

dani quilez