buttons close and exit resetted.