update:  finish all main page scripts