Added history capabilities
Refactored and added history view