web: simplify view handler