Updated pubsub callbacks, added flash messages