fixing up adding events

MAKE SURE JS SCRIPTS/CALLS ARE IN THE CORRECT ORDER IN THE FUTURE