button  ok & button cancell, added logger