move "pending finish" from fragment to activity