modalElement class declaration