Edit reset form function