added functionallity to the code to see if the screen populates a label