added ok button and listener