add load component function