Add pagination layout and ordering on messages list