Added history load functionality