commit before change fragment on activity for open folders