adds a style sheet
added error messages