code revision in MainActivity
Added Clear Button
Correct management of "button lifecycle"