added reset form function