modified the coast forward function in event dispatcher and removed the const identifer for shared event pointers in event set