Move the initialization calls to onActivityCreated()