Issue #82 and #88 Fixed

With these fixes now we are able to save and get identifier right after refreshing, without losing tree view status. Also reverting a defect is working without losing tree view status.