Add heap memory web view
Flatten nested conditional