Updated cml element disposal functions
Updated cml dispose functions