adds viewcontroller dismiss and mailcomposer