started work on pagination. results on contacts page are limited to 500 for now in order to avoid overload of browser