added activityOnly logic to activityMain