fixed bug with pressing ESC and details