Calendar layout and view working