refactor create_item action