added clear form functionality