Updates for popup to auto remove if click outside