Added functionality to view and create rules for accounts