auto adjust heading based on orientation