Add total page. Done with functionality.