changed the HTML form for runnnig tests.
added a 500 error HTML page
fixed a syntax bug