removed console statements and add html elements