JS edit lib dialog UI improvements