Small logic improvements

Added 4 state parameters
background color
background opacity
title color
title opacity