added calendar filtering according to active tab