fixed bug with refresh() and originalvalues of the adapter. also fixed search and refresh bug.