show error message if state change is unsuccessful
Merge pull request #940 from adrianob/show_error_message

show error message if state change is unsuccessful