refresh functionality after click the flag icon