update UI and make sessions sort by time