admin-ui: JS improvements