rotation is reset on window open