Changed permissions and added 404 page