Refactor loader class for tab