add title, legend widget