Set global $g to use right theme