corecting bug for view cache generator and doing some tasks of insight