done method, hides cancel.