Make the 'clear form' buttons work