Added code to show success/error message on all view.