Put a search option on the accounts page. Using JSON and JS.
Messages display in DESC order. new messages on top.
notifications page, click on link to go to the message.