Error handling added.
Error messages at console as well as view added.
Improved view.