window: fix memory leak
manager: add back dates marking range