Add portals function and event search page