Fixed bug caused by overwriting. Added popup links to errors.