created basic index method in index controller