add modal closing on overlay click