add success flash message
fix bug null string datapoints