Re-render view only when it needs to. Fixes #121.