changed search by caption, provided sort by for users, prevented rapid ajax attack for search, optimized pagination, secured results per page input