fixed some bugs
fixed search
'update'