fixed usename issue on click of flag