fix in settings controller to redirect back to previous page after saving