fix composer dependency

- refactor controller