added functionality to hide past dates