Fixed all the bugs
Implemented log history, survey history and others