added flashbaglistener