Adds ajax updates

Adds functionality for search fields and pagination ajax calls.