fixed broken js for ui of new