fixed some layout and edge cases on history page