debug removed, small changes in HTML