dev.html sample refactoring