added sort options to index page