Improve the behaviour of the pageNumber input field