added history capability (enable back button)