replaced hard-coded html with parameters and applied mustache template