changed the outlet to declare only in header file, and then @synthesize the ui object in the class file.