complete ui logic.

fyi.
complete effect alg.

fyi.
add effect.

fyi.