improved javascript performance in the admin