updated the views for sorting