use mvc pattern, add capture ui