Adds closing of modal by clicking to overlay as well.