Added onThemeChanged to handle theme switching

Tested previous merge 5dc3e331f1c51ab2bbbe1e13444013a270f4c755 and found out we haven't implemented theme switching handler. Here they go.