Change implementation from Hook to Xclass to allow changing the background color (refs #568)