added permission for network state
rerouted button to new method
inserted new autoSync and manualSync method to be called manually or
automatically