refactored a bit of redundant code in the simplemodal taglib.
deleting an element also cleans up after itself in the story ordering.