persisting reference to alertController
added composebarbuttonitem
replaced closefile with releasefile