Simplify code making views