added BOOL to say if app is open or not. also made myUserRow into a variable