added confirmation dialog to AfterActivityClass