merge two view procedures