add check for activity to destroy it