changing prioritize to use Event.all_scope (rather than Event.all)