refactor controller, TODO : clean poms