rule controller added (better oo and mvc practices)