added: emit "clear" event by the refresh function