style changes for pagination
code refactor