Updated theme file function