UI test and change for pagination and delete post.

Deleteing a post goes back to the previous page if only post on page.

Or it returns to pag you were previously on.