updated force page refresh logic