updated code to use composer and changed clicontroller to not exit just return