added ability to close error messages
updated version