Added onThemeChanged to handle theme switching