updating border in day and week view