Added rule model logic and updated views, seeds