add files and add flag in poetryviewcontroller