updated Library Editor code