prepare the complete html