finish activity and fragment skeleton