added query sting validation for the settings mod
shifted some code out of the the view and into the controller for the settings module