refactoring merge camera ctx_ui