A simple modal has been created. When modal is closed or any interaction with the screen other than modal, the modal closes itself and the page is reloaded (clearing all the fields). The sample modal has been attached.