added creating activity functionality