restructure view