Header disappear on controller reload

i am checking internet connection in my app controller, it working fine show popup message if app is offline, when i reload the same controller header disappear, i have tried these lines of code after googling

// $state.reload();
 $state.transitionTo($state.current, {}, { reload: true, inherit: true, notify: true });
// $state.transitionTo($state.current, {}, { reload: true, inherit: false, notify: true });
// $state.go($state.current, {}, {reload: true});

is there any better way to reload controller where header stays same,