removed htmlentities() since we are writing html code