working on page refresh