change the condition for showOkButtonByDefault

@espinchi review