optimize page interface and fix bug