main function & setting page completed =>remaining: automatically detect