changed controllers to be separated file