update graphics