made it so that sorting variables now change whenever users select items from drop down menus