delete and add activities and fragments