changing sort mode and a bunch of other things