fix collision with background elements when wanting to click out of settings