slider is deprecated replacing it with flipswitch
Remove function as the dependency was lost in the merge
Add enable/disable compass as a setting