Added refresh data functionality