fix template issue in portal.html