Minor changes to index and error dispaly