added sorted lists and buttons for sorting