update ribbon position