updates graphics