added user input routines to ios