refactor theme download process