updating display and background