putting rules in the view