keep x&y axis state