add functional margin, fix view data report