fix page links errors
add space pagination codes