add per/res operation ui.
optimize operation ui code.