added some basic sorting and ui enhancements.