minor loading fixes
update code to ionic 1.0.0-beta1