removed dead code from test
Updated 'update' controller to redirect to dashboard and show a flash message confirming user prefs have been changed