use layload autoload function,fixed some notice