Removing user detail template in case user clicks the OK button

So now I can work event handling part