fix issues with admin after switching to new js