Added rules and task detail view