revise web page output, removed dead code