add editor reset functionality