add auto detect which page to update