added fadeBackground function