Add context to pagination