add active mixin and active flag to project
fixed and organized flagging and active behaviors