refactor create action in listing controller