Microsoft planning rival to iPhone