added 404 pages to all functions to keep pages safe