added font selection and passing json for element attributes