improved error message popup