updating graphics