Adds selectable_and_sortable scope and after_save method