added flashing and refresh data