setAttributes to shapes and text