close book modal on click anywhere outside modal