change default view to agendaWeek
add test for null in htmlescape