add repaginate page
fixed code spacing