Implemented history persistence

Implemented history persistance and "remove from history" button