Coded a simple text widget which updates on click