add auto refresh to 2 pages