add view tag ; add unittest for view-tag