Demo by Mikey Gee on how to prevent memory leaks when switching views