replaced spaces in html ids because that messes up jquery selectors