refactor loading controllers