Working on web app, problem with pagination and alignment display