changes to index and controller