Form clearing added

Added code to clear the input fields when running a function.