Rewriting views plugin