# Add and remove a memory beast

**URL:** <https://discuss.emberjs.com/t/add-and-remove-a-memory-beast/7095>\
**Category:** Design\
**Created:** [January 16, 2015, 4:12pm UTC](https://discuss.emberjs.com/t/add-and-remove-a-memory-beast/7095 "2015-01-16T16:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randy](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/randy/32/10144_2.png) [@Randy](https://discuss.emberjs.com/u/Randy)\
**Post date:** [January 16, 2015, 4:12pm UTC](https://discuss.emberjs.com/t/add-and-remove-a-memory-beast/7095/1 "2015-01-16T16:12:28Z")

</div>

I’m making my first Ember app. I have a div that is normally full of static content, however if the user presses a button, I wish to load a piece of live running javascript (essentially a graphic) that is probably a memory beast (i.e. uses a lot of memory). I can’t figure out how to swap these static content and the memory beast (hopefully in a way that removes all the memory consuming code). I don’t want to switch routes.

One idea was to use a container view and have the two views as subviews that I can add and remove, but it seems like if you use a container view, then it has to be the container view for the whole page and I have other areas on my page with different content. Making the whole page a containerview with a lot of subviews doesn’t seem like an ember way to do things. Can you advise
