1. rewrite some functions; 2. support Ajax; 3. fixed bugs