autorefresh and back button