improvement on addBulkAction function.

It takes into consideration  the $config values passed as function parameters.