optimizing view manager to save instances