adding flash alerts and notices
adding logic to display in the app view