Fix some bugs. Improve calendar view.