Fixed background gradient; code cleanup