add activity (and not activity) pause, resume logic