bug fixes

Fixed a bug in search results causing next/previous buttons to appear
even if no multipage was present.

Fixed a bug in the styling of app messages which caused the close button
to appear outside the message box.