update graphics drawing order