change tag attribute