finally got ok button to work