initialized settings page and added a 404 page