Added the ability to show success and error messages in this master layout.