add waitForDetach to element
remove saveState and waitForStateChange element methods