If you put this render here, you are adding the modal to page and it's an overloading to page. Is more convenient loading  the modal on demandm. Use Ajax for this.