updated for Windows Phone 8