implemented reset dialog