* window automatic closing on opening the same type (preserve the same behaviour as without custom_listings)