support for changing orientation
fix x and y coordinates for WP8 based on device orientation
added other device orientations