Added Rules to activity