reorganize the framework of the web front