GK: refactoring html