added support for optional sender for Plasma.on handlers