merge codes in view construction methods