making sure its not sending out barCode messages when its dismissing