improvements to date handling, sorting, and other UI fixes