Implemented a dialog service for confirmation of action and error report.
Started to write errors for some case.