added ok button
added ok button
Added the cancel and ok functionality