Updated LM to only reset template contents when you have an unrendered view, Closes GH-268