Add functionality to the flashMessenger listener