Fixed rendering issues with torrent dialogs.
Refactor.