updated view with reseting code