Bug fixes

Small bug fixes to the page system for viewing messages.