loadable component example refactoring