Where To Place A Logic? Widget Or Caction?

Hey everyone!

I have a blog.

Every post in this blog can have related posts from the same blog.

I need a block "edit related posts" on "edit blog post" page.

In this block I need several actions:

  1. add/edit related post

  2. delete related post

  3. render (view) related post

Where should I place this logic?

  1. All logic of these 3 actions in CActions?

  2. Widget? call widget (from CAction) to do this logic?

Any ideas will be appreciated.

Thanks in advance!