update media element and friends