refactor to support /commit views