* format codes and add ';'.
 * Add chose site type function.
 * fix pager bug.