added Before/AfterHandleMessageActions in SharedSpace