Added code for week view