update and module export and add support for moved dom content