added 404 case for portlets