added save and reset button to detail view