fixed search bug, add scrolluponclick feature

save to file will always result in nullpointer