replace class.upload and modify markups and header in lib_search