fixed the issue with user inputed page no. issue