fix add activity to be more dynamic