added main_controller with index