Added modal error modal dialog.
Fixed name css name clash
removed unused code.