changes for sorting, autorefresh, etc.