add view rules