finished auto refresh and date bugs