code for the windows phone 8 uip client