moved rest call to tabbarcontroller