add connect for ok button