better handling pop up message