made backups before refactoring for the result view and for the html result page, made major refactoring in the result view and in the result html