Added functionalies to history page