Creating function that will fire when sortable action is completed