error page is added and created pagination on message page.