removed cruft
added helper function
default to help page first
fixed up link checking so the preferences and help tabs look active
fix the preferences & help links to switch tabs