Fixed bug of adding admin.
Add a html ouput functionality to template.