make sure popup is not open before clicking on a day
ammend to last fix