index not linking to correct page