complete and correct index login action from controller
get the total number of countries persisted in database
retrieve a row of 40 countries from database
define variables used in pagination
make active the page that has the current page index, disable next button when we are on the last page, disable previous button when we are on the first page
transmit page number in navigation links
make sure the page number provided by click on link navigation is transformed to an integer
the total number of countries is not exceeded
complete pagination functionality except previous and last button
display details of the countries on page table
complete pagination functionality