Some bug fixes with day view, auto refresh