fix layout color and opacity issue