Selected and checked rules working