append replaced with html for further usages and typo fixed