Store codexbaseid on restoring layouts