cloning now only happens once, modals hide on close instead of getting destroyed