moved html creation in manager, some bugs.