before add new activity class