print capture ui and logic