Made resetting of text public