Refactored pagination view code.
Removed all post request and its handler.

Now that I have added pagination, there is no need for them.