Move registrate script files to BaseController

Move registrate script files to BaseController