changed code to new html