Reload page on theme change event to avoid flickering