Fixing JS on admin Event