move controller into module, add method to routes