update history page & add fix for mobile