made modal background close on click