Fixed the problem of previous and next pages buttons.
Deletes the button tags and adds two filters in functions.php file.