Added clear button functionality to main form