added getter methods for MessagesPerPage