fix popup bugs, adjust style for error message