 Click on the shown cancel button leads to the add new patient page and if you click submit again it creates duplicate patient entries