Changed index page format and added some checks for valid wiki pages