applying vars as attribute in svg buttons