Added changing background mechanism

Added changing background mechanism