remove activities when presentation is removed