Now properly detect whether an activity is new in the template