Making new AbstractActivity a dialog listener.