Created class ActionInsert doing insert when Ok button is clicked