optimize cmd page