add toastmessage plugin and error message