change log position in getCurrentElementAttribute. add TODO in Button