refactoring of web interface