api work for page selection