continued the performance improve

corrected minor issues
added instance filtering to the viewer