Edit Addfunction in AddActivity