moved theme listener into /config to make it work with all sites (also if Multisites module is not available)