Adding pagination, editing mail content