add loading sequence and format content
refactor scripts