implemented prev week, current week functionality