add controller
add attribute id into commands
ignore trailing space