finished refactoring. Added example html