add _ctor function for RichElement