displaying flash notices and alerts functionality added