add ok and cancel function in ingController