generate new and create action