Added click event to update button