Update flash message render method
Fix pagination error