Add pagination to announcements show page, refactor code

@cgruppioni @chukdisc
I believe this is the right syntax