added confirmation and corrected activity