Small fix for confirm box

Added fix for confirm box overlay and added
func to remove the box by pressing ESC key.