added autorefresh and refresh button