adding custom sortupdate event
trying to modularize everything
trying to modularize everything