Add global view variables and add urls generator to pagination.