improved initialize code for removing default json active support behaviour
set header in paginate method