[*] Viewer small refactoring. Resources registration are divided into the small methods