added changing background functionality