added monthly view, fixed intervals in date queries