Refactoring of printing ui job