calendar functionality finished