Index controller added and master layout set up