Added more sustainable and manageable way to open modal with URL change