add control script
fix pagination