added edit and reset