OK button is already handled, so this is not necessary at all. This line of code should be removed.