added better error handling, and last updated time and refresh button