@AminaZoheir You will want to add these click event handlers on document load, then here just show the modal. As it is now these handlers are added over and over again to the buttons