add logic to card and board controllers