apply layout to source view