move fragment transision commit out of async action

should prevent IllegalStateException as suggested here: http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html