removing extraneous markup from views