Update selected state when data is refreshed in addition to hiding toast