tried fixing search and jquery dialog functions. Had to leave as is. Final commit