fixed dismiss behavior of details overlay