How do I display a cancel but when records have been submitted successfully and hid but submit when cancel but is display