behavior refactoring: all calls of getElementById moved to composer.