widget to check previous dates or not