refactoring html index code