use common layout between two view