Moved html creation to search objects