Small aesthetic changes.
Fixed a bug with the past document buttons.