adding search button to card loan index page and fixing status code in admin