fixing bug in placement of html