added pagingation and ability to view posts