reset html and form properly