Fixed issue with deleteView and getExistingView logic