Close summary dialog on click away