Add modal function to other pages