added bootstrap dialogs to improve error messages.