view custom xml attributes
solve draw loop