add rule for cp-control class
fixed issue in "prepare" function