Element css visibility is affected by messagesOnModified

If messagesOnModified is set to false, apply the element css too