pull common methods out of IPhoneUI and MockUserInterface into UserInterface