Handles cross page messages.