change mime type and reformat search controller