Add various codes to outlay. Remove date from item to doc.
Code refactoring: refactor xml views.