added main method in Controller