history display popups
cleaned up code
refresh data after save